package com.evan.uyclub.LoadDiaLongs;

import android.app.ActivityManager;
import android.app.Dialog;
import android.content.Context;
import android.view.View;

import androidx.annotation.NonNull;

import com.evan.uyclub.R;
import com.skydoves.elasticviews.ElasticButton;

import java.util.List;

public class NewsApp extends Dialog {
    private ElasticButton yes, no;
    private Context contexts;

    /**
     * 加载框工具
     *
     * @param context
     */
    public NewsApp(@NonNull Context context) {
        super(context, R.style.dialogs);
        contexts = context;
        setContentView(R.layout.activity_newsapp);
    }

    public void show(boolean type) {
        setCancelable(type); // 返回键是否允许关闭
        setCanceledOnTouchOutside(type); // 点击界面是否允许关闭
        super.show();
    }
}
